package com.woniu.mapper.sportsHealth;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.woniu.model.sportsHealth.entity.HeartRate;
import com.woniu.model.sportsHealth.model.dto.HeartRateDto;
import com.woniu.model.sportsHealth.model.vo.HeartRateVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 心率表 Mapper 接口
 * </p>
 *
 * @author Jet
 * @since 2023-10-23
 */
@Mapper
public interface HeartRateMapper extends BaseMapper<HeartRate> {

    List<HeartRateDto> findAll(Map<String,Object> param);

    @Select("select account,name,resting_heart_rate from sh_heart_rate " +
            " inner join sh_user su on sh_user_id = su.user_id")
    List<HeartRateVo> findAllExport();
}
